$(function(){
    var options = {
        tree_callback : {
            beforecheck : function($this) {
                var url = $.trim($this.attr("url"));
                if ("" == url || "null" == url) {
                    return false;
                }
                $("#frm_system_menu_tree_data").attr("action", contextPath + $this.attr("url"));

                $("#frm_system_menu_tree_data").submit();
                return true;
            }
        },
        tree_data : $.parseJSON(SYSTEM_DATA.menu_data)

    };
    $("#system_menu_tree_data").tree(options);
});


